# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pdb
pkgver=0.1
pkgrel=3
pkgdesc='Password DB for shared password management.'
arch=('any')
url='https://pypi.python.org/pypi/pdb/'
license=('Apache2')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/d8/66/548bb86497289cdd20c90ba437afdead26bb96f65326c5ede25444b9b556/pdb-$pkgver.tar.gz")
sha512sums=('fd208ed7bf6eb459b3914558a18388c4fa5f4b2e')

build() {
  cd "pdb-$pkgver"

  python2 setup.py build
}

package() {
  cd "pdb-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

